html,
body {
  font-family: var(--el-font-family);
}

html,
body,
#app,
.el-container {
  padding: 0px;
  margin: 0px;
  height: 100%;
}
.el-main,
.el-footer,
.el-header {
  padding: 0px;
}
.el-footer,
.el-header {
  height: auto !important;
}
:root {
  --el-cupks-win-bg-color: #f2f7ff;
  --el-menu-hover-bg-color: #f0f1f5;
  --el-menu-text-color: #25396f;
  --el-menu-active-color: #435ebe;
  --el-menu-item-height: 50px;
  --el-color-primary: #1F51FF;
  --el-color-success: #4fbe87;
  --el-color-warning: #eaca4a;
  --el-color-danger: #f3616d;
  --el-menu-item-font-size: 14px;
  --el-text-color-primary: #25396f;
  --el-pagination-font-size: 12px;
}
hr {
  padding: 0px;
  margin: 0px;
  border: #eeeeee solid 1px;
}

/****/
.cupk-content {
  font-size: 16px;
  padding: 20px;
}
.cupk-content blockquote {
  padding: 10px;
  background-color: #f2f2f2;
  border-left: 6px solid #b3b3b3;
  word-break: break-word;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5em;
  margin: 0 0 20px;
  border-radius: 4px;
}
.cupk-content p {
  line-height: 1.7;
}
.cupk-content H1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0px;
  border-bottom: 1px dashed #eeeeee;
  padding-bottom: 20px;
  padding-top: 20px;
}
.cupk-content H2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0px;
  border-bottom: 1px dashed #eeeeee;
  padding-bottom: 10px;
  padding-top: 10px;
}
.cupk-content H3 {
  font-size: 18px;
  font-weight: 700;
}
.cupk-content code {
  background-color: #eff1f3;
  font-size: 0.9em;
  padding: 2px 8px 2px 8px;
  border-radius: 4px;
  color: #2c2c43;
  margin: 0px 2px;
  word-wrap: break-word; /* 防止长单词溢出容器 */
}

.cupk-content pre {
  background-color: #2c2c36;
  color: #fff;
  overflow: auto;
  padding: 8px;
  border-radius: 4px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 20px solid #585a73;
  line-height: 1.2em;
}
.cupk-content pre code {
  padding: 0px 0px;
  margin-left: 0px;
  margin-right: 0px;
  background-color: #2c2c36;
  color: #ffffff;
}
.cupk-content img {
  max-width: 100%;
}

.cupk-content a {
  text-decoration: none;
  color: var(--el-menu-active-color);
}

.cupk-content video {
  max-width: 80%;
}
/* 设置整个表格的边框样式 */
.cupk-content table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  margin: 0;
  overflow: hidden;
  max-width: 100%;

  td,
  th {
    min-width: 1em;
    border: 1px solid #ced4da;
    padding: 8px 18px;
    vertical-align: top;
    box-sizing: border-box;
    position: relative;

    > * {
      margin-bottom: 0;
    }
  }

  th {
    font-weight: bold;
    text-align: left;
    background-color: #f1f3f5;
  }

  .selectedCell:after {
    z-index: 2;
    position: absolute;
    content: "";
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(200, 200, 255, 0.4);
    pointer-events: none;
  }

  .column-resize-handle {
    position: absolute;
    right: -2px;
    top: 0;
    bottom: -2px;
    width: 6px;
    background-color: #adf;
    cursor: e-resize;
  }

  p {
    margin: 0;
  }
}

.el-button:focus-visible {
  border: 0px solid #f4f4f5;
  outline: none;
}

.el-popper {
  margin-top: -10px;
}

.zhzm-file {
  background-color: #f8f5dd;
  border: 1px dotted #dbd6b3;
  padding: 20px;
  font-size: 12px;
  color: #999999;
  min-width: 50%;
  border-radius: 8px;
  width: 50%;
  img {
    max-height: 64px;
    max-width: 64px;
  }
}

.cupk-view-content .zhzm-file {
  cursor: pointer;
}
.cupk-view-content .zhzm-file img {
  cursor: default;
}
.cupk-view-content .zhzm-file:hover {
  background-color: #f9f7eb;
}
.ProseMirror {
  white-space: pre-wrap; /* 确保正确处理空白字符和换行符 */
  word-wrap: break-word; /* 防止长单词溢出容器 */
}
